package xkp.lesson1;

public class Demo2 {
	public static void main(String[] args) {
		byte a = (byte) 1000;
		System.out.println(a);
		
		byte b = -3;
		//1000 0011
		//1111 1100
		//1111 1101
		byte c = 2;
		//0000 0010
		//1111 1101
		System.out.println(b&c);
		
		
		byte d = -12;
		//1000 1100
		//1111 0011
		//1111 0100
		byte f = 22;
		//0001 0110
		//1111 0100
		//0001 0100----20
		System.out.println(d&f);
	}

}
